import http.client
from html.parser import HTMLParser

word = input()

connection = http.client.HTTPSConnection("dictionary.cambridge.org")
connection.request("GET", "/dictionary/english-chinese-simplified/" + word)
response = connection.getresponse()
page = response.read()

#f = open("page.html", "r")
#page = f.read();
#f.close()

class MyHTMLParser(HTMLParser):
    status = 0
    
    def handle_starttag(self, tag, attrs):
        for i in range(len(attrs)):
            if attrs[i][0] == "class":
                if attrs[i][1] == "posgram ico-bg":
                    self.status = 1
                if attrs[i][1] == "def-body":
                    self.status = 2
                if self.status == 4 and attrs[i][1] == "ipa":
                    self.status = 5
                
    def handle_data(self, data):
        if self.status == 1:
            print(data, end="  ")
            self.status = 4
        elif self.status == 2:
            self.status = 3
        elif self.status == 3:
            print("\t", data[29:])
            self.status = 0
        elif self.status == 5:
            print("/" + data + "/")
            self.status = 0

parser = MyHTMLParser()
parser.feed(page.decode())
